import request from '@/utils/request'

// 查询医嘱用法列表
export function listMedicalOrderUsage(query) {
  return request({
    url: '/pg/medicalOrderUsage/list',
    method: 'get',
    params: query
  })
}

// 查询医嘱用法所有列表
export function listAllMedicalOrderUsage(query) {
  return request({
    url: '/pg/medicalOrderUsage/listAll',
    method: 'get',
    params: query
  })
}

// 查询医嘱用法详细
export function getMedicalOrderUsage(id) {
  return request({
    url: '/pg/medicalOrderUsage/' + id,
    method: 'get'
  })
}

// 新增医嘱用法
export function addMedicalOrderUsage(data) {
  return request({
    url: '/pg/medicalOrderUsage',
    method: 'post',
    data: data
  })
}

// 修改医嘱用法
export function updateMedicalOrderUsage(data) {
  return request({
    url: '/pg/medicalOrderUsage',
    method: 'put',
    data: data
  })
}

// 删除医嘱用法
export function delMedicalOrderUsage(id) {
  return request({
    url: '/pg/medicalOrderUsage/' + id,
    method: 'delete'
  })
}
